package com.shark.uh.service;

import com.shark.uh.model.dto.permission.PermissionCreateDTO;
import com.shark.uh.model.dto.permission.PermissionResponseDTO;
import com.shark.uh.model.dto.roles.RolesResponseDTO;
import com.shark.uh.model.entity.Permissions;
import com.shark.uh.model.query.PermissionQuery;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface PermissionsService extends IService<Permissions> {
    void savePermissions(PermissionCreateDTO permissionCreateDTO);
    void deletePermissions(List<Long> permissionIds);
    PermissionResponseDTO findPermissions(PermissionQuery permissionQuery);
    void assignRoles(Long permissionId, List<Long> roleIds);
    void removeRoles(Long permissionId, List<Long> roleIds);
    RolesResponseDTO getAssignRoles(Long permissionId);
}
